import Vue from 'vue'
import Router from 'vue-router'
import layout from '@/components/layout'
Vue.use(Router)

export default new Router({
  routes: [
    
    // {
    //   path: '/',
    //   redirect: '/index'
    // },
    {
      path: '/login',
      component: () => import('@/pages/login/index2'),
      hidden: true
    },
    {
      path: '/',
       redirect: '/index',
      component: layout,
      children: [{
        path: 'index',
        name: 'index',
        component: () => import('@/pages/home/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'qbzx',
        name: 'qbzx',
        component: () => import('@/pages/qbzx/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'zcfg',
        name: 'zcfg',
        component: () => import('@/pages/zcfg/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'xxtb',
        name: 'xxtb',
        component: () => import('@/pages/xxtb/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'zzdt',
        name: 'zzdt',
        component: () => import('@/pages/zzdt/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'aqxc',
        name: 'aqxc',
        component: () => import('@/pages/aqxc/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'bszn',
        name: 'bszn',
        component: () => import('@/pages/bszn/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'search',
        name: 'search',
        hidden: true,
        component: () => import('@/pages/search/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'details',
        name: 'details',
        hidden: true,
        component: () => import('@/pages/search/details')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'register',
        name: 'register',
        hidden: true,
        component: () => import('@/pages/register/index')
      }]
    },
    {
      path: '/',
      component: layout,
      children: [{
        path: 'resetPassword',
        name: 'resetPassword',
        hidden: true,
        component: () => import('@/pages/resetPassword/index')
      }]
    }

  ]
})
